package com.project.mapper;

import com.project.bean.ReplyBean;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface IReplyMapper {
    /**
     * 添加评论
     * @param reply
     */
    @Insert("insert into t_reply(r_title,r_content,r_date ,fk_pId,fk_userId)values(#{title},#{content},#{date},#{post.id},#{user.id})")
    public  void  add(ReplyBean reply);
}
